﻿<%@ Page Language="C#" MasterPageFile="~/car-insurance/proposalforms/CarInsuranceProposalMasterPage.master" AutoEventWireup="true" CodeFile="rsa_proposal_form1.aspx.cs" Inherits="car_insurance_new_proposalforms_rsa_proposal_form_old" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrNationality.ascx" TagName="usrNationality" TagPrefix="uc4" %>
<%@ Register Src="~/controls/usrCompanyLogoByServices.ascx" TagName="usrCompanyLogoByServices"
    TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc7" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc8" %>
<%@ Register Src="~/controls/usrSalutation.ascx" TagName="usrSalutation" TagPrefix="uc9" %>
<%@ Register Src="~/controls/usrRelationship.ascx" TagName="usrRelationship" TagPrefix="uc10" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
 <script src="../../includes/cx_jquery_post_code.js" type="text/javascript"></script>

    <script src="../../includes/PostCode.js" type="text/javascript"></script>

    <script src="../../controls/CE_Date.js" type="text/javascript"></script>

    <script src="../../controls/IdNumber.js" type="text/javascript"></script>

    <script src="../../includes/LoadingProgress.js" type="text/javascript"></script>
    
      <div class="elements_inner_wrapper">
        <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server"></asp:ScriptManager>
        <div id="contentBody">
            <div id="tabblue">
                <ul>
                    <li><a href="#"><span>About You</span></a></li>
                    <li><a href="#"><span>Car and Insurance Details</span></a></li>
                    <li><a href="#"><span>Your Results</span></a></li>
                    <li id="current"><a href="#"><span>Proposal Form</span></a></li>
                </ul>
            </div>
            <div class="section">
                <fieldset>
                    <div class="row" id="divValidationSummary">
                        <asp:ValidationSummary ID="vsproposal" runat="server" CssClass="errorSummary" ValidationGroup="proposal"
                            HeaderText="Please complete the form" />
                    </div>
                    <div class="form_subbox">
                        <div id="divShow">
                            <img id='img1' alt="Click to Show Quote Summary" border="0" src="../../images/buttons/view_quote_sum.gif"
                                onclick="showhide('divQuoteSummery');ShowHideDiv('divShow',false);" />
                            <div class="field">
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divQuoteSummery" >
                            <div class="row">
                                <h3>
                                    Quote Summary</h3>
                                <label for="name">
                                    Quote Reference Number</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblQRefNo" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Year of Manufacture</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblYrofManufacture" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Year of Registration</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblYrofRegister" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Car Make & Model</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblCarMakemodel" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Offpeak Vehicle?</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblOffpeakvehile" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Current/Existing NCD</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblNCDvalue" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                              <div class="row">
                                <label for="name">
                                    Applicable/Renewal NCD</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblNCDRenewal" runat="server"></asp:Label><input type="hidden" value="0" id="inputNCD" runat="server" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Any Claims in the Last 3 Years?</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblAnyclaim" runat="server"></asp:Label><input id="inputClaim" value="" runat="server" type="hidden" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Offence-Free Driving/COM</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblOffenceDriving" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Add Additional Name Driver</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblAddDriver" runat="server"></asp:Label>
                                    </span>
                                    <div style="display: none;">
                                        <asp:TextBox ID="txtDriverCount" runat="server" Text="0"></asp:TextBox></div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Cover Commencement Date</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblCommencementdate" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Selected Insurer</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblSelectInsurer" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Workshop Plan</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblWorkshopPlan" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="name">
                                    Premium</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:Label ID="lblPremiums" runat="server"></asp:Label>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <img id='imgHide' alt="Click to Hide Quote Summary" border="0" src="../../images/buttons/hide_quote_sum.gif"
                                    onclick="showhide('divQuoteSummery');ShowHideDiv('divShow', true);" /></p>
                                <div class="field">
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form_title_top">
                            Important Disclaimer:</div>
                    <div class="form_box">
                        <div class="blacksmall">
                            <p><asp:Label runat="server" ID="lblDisclaimer" Text=""></asp:Label></p>
                        </div>
                    </div>
                    <div class="form_title_top">
                        Particulars of Proposer</div>
                    <div class="form_box">
                        <div class="row" id="divSalutation">
                            <label for="Salutation" class="mand_red">
                                Salutation</label>
                            <div class="field">
                                <uc9:usrSalutation ID="ddlSalutation" runat="server" ValidationGroup="proposal" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>                    
                        <div class="row" id="divName">
                            <label for="Name" class="mand_red">
                                Name as in NRIC/Passport</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtName" MaxLength="100" runat="server" class="text" Width="200px"></asp:TextBox>&nbsp;
                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="revName" runat="server" ControlToValidate="txtName"
                                        ValidationExpression="^[a-zA-Z''-'\s]{1,50}$" ValidationGroup="proposal" CssClass="validationErrorControl"
                                        Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divNRICNo">
                            <label for="NRIC Number" class="mand_red">
                                NRIC/Passport No.</label>
                            <div class="field">
                                <uc3:usrIdNumber ID="ddlIdNumber" runat="server" ValidationGroup="proposal" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divNationality">
                            <label for="Nationality" class="mand_red">
                                Nationality</label>
                            <div class="field">
                                <uc4:usrNationality ID="ddlNationality" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <div class="row" id="divPostCode">
                                    <label for="Postcode" class="mand_red">
                                        Postcode</label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:TextBox ID="txtPostCode" Width="80px" onkeypress="restrictToNumbers(event)"
                                                AutoPostBack="true" OnTextChanged="txtPostCode_TextChanged" runat="server" class="text"
                                                MaxLength="6"></asp:TextBox>
                                            <asp:UpdateProgress runat="server" ID="uplUpProgress" DisplayAfter="1000">
                                                <ProgressTemplate>
                                                    <span>Loading...</span>
                                                </ProgressTemplate>
                                            </asp:UpdateProgress>
                                            <asp:ImageButton ID="btnPostCode" Visible="true" ValidationGroup="PostCode" runat="server"
                                                Text="Get Address" OnClientClick="this.disabled=true;" />
                                            <asp:RequiredFieldValidator ID="rfvPCode" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revPCode" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ValidationGroup="PostCode" ValidationExpression="[0-9]{6}"
                                                ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                        </span><span class="indicator">
                                            <asp:RequiredFieldValidator ID="rfvPostCode" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtPostCode"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="revPostCode" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{6}"
                                                ControlToValidate="txtPostCode"></asp:RegularExpressionValidator>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="row" runat="server" visible="false" id="divAddressList">
                                    <label for="AddressList">
                                        Please choose your address
                                    </label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList ID="ddlAddressList" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlAddressList_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <div class="row" id="divUnitNo">
                            <label for="Unit Number" class="mand_red">
                                Unit Number</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtUnit1" runat="server" class="textsml"></asp:TextBox>-</span>
                                <span class="indicator">
                                    <asp:RequiredFieldValidator ID="rfvUnit1" runat="server" CssClass="validationErrorControl"
                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit1"></asp:RequiredFieldValidator></span>
                                <span class="indicator">
                                    <asp:TextBox ID="txtUnit2" runat="server" class="textsml"></asp:TextBox></span>
                                <span class="indicator">
                                    <asp:RequiredFieldValidator ID="rfvUnit2" runat="server" CssClass="validationErrorControl"
                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtUnit2"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                                <div class="row" id="divPCAddress">
                                    <label for="Address" class="mand_red">
                                        Address</label>
                                    <div class="field">
                                        <span id="divAddress"></span>
                                        <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" MaxLength="120"
                                            Width="300px" class="text"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvAddress" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtAddress"></asp:RequiredFieldValidator>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <div class="row" id="divContactNo">
                            <label for="Contact Number" class="mand_red">
                                Mobile Number</label>
                            <div class="field">
                                <uc1:usrPhoneNo ID="txtMobileNo" IsEnabled="true" IsRequired="true" PhoneNoRequireErrorMessage="Require mobile number."
                                    PhoneNoErrorMessage="Mobile phone number should 8 digits." PhoneNoValidErrorMessage="Invalid mobile phone number."
                                    runat="server" ValidationGroup="proposal" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divAResidentPhoneNo">
                            <label for="Residential Phone Number">
                                Residential Phone Number</label>
                            <div class="field">
                                <uc1:usrPhoneNo ID="txtResidentialPhoneNo" runat="server" ValidationGroup="proposal"
                                    IsRequired="False" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divAOfficeNo">
                            <label for="Office Number">
                                Office Number</label>
                            <div class="field">
                                <uc1:usrPhoneNo ID="txtOfficePhoneNo" runat="server" ValidationGroup="proposal" IsRequired="False" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divFaxNo">
                            <label for="Fax Number">
                                Fax Number</label>
                            <div class="field">
                                <uc1:usrPhoneNo ID="txtFaxNo" runat="server" ValidationGroup="proposal" IsRequired="False" />
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divExperience">
                            <label for="LicenceNo" class="mand_red">
                                Driving Experience</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:DropDownList ID="ddlExperienceYear" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                    <asp:DropDownList ID="ddlExperienceMonth" runat="server" Width="40px">
                                        <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                        <asp:ListItem Text="1">1</asp:ListItem>
                                        <asp:ListItem Text="2">2</asp:ListItem>
                                        <asp:ListItem Text="3">3</asp:ListItem>
                                        <asp:ListItem Text="4">4</asp:ListItem>
                                        <asp:ListItem Text="5"></asp:ListItem>
                                        <asp:ListItem Text="6">6</asp:ListItem>
                                        <asp:ListItem Text="7">7</asp:ListItem>
                                        <asp:ListItem Text="8">8</asp:ListItem>
                                        <asp:ListItem Text="9">9</asp:ListItem>
                                        <asp:ListItem Text="10">10</asp:ListItem>
                                        <asp:ListItem Text="11">11</asp:ListItem>
                                    </asp:DropDownList>(Month)
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divLicenceNo">
                            <label for="LicenceNo" class="mand_red">
                                Driving Licence No.</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtDrivingLicenceNo" runat="server" MaxLength="50"></asp:TextBox>
                                    <asp:RequiredFieldValidator
                                        ID="rfvDrivingLicenceNo" ControlToValidate="txtDrivingLicenceNo" ErrorMessage="" ValidationGroup="proposal"
                                        CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divClass">
                            <label for="Class" class="mand_red">
                                Class</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtDrivingClass" runat="server" MaxLength="50"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvDrivingClass" ControlToValidate="txtDrivingClass" ErrorMessage="" ValidationGroup="proposal"
                                        CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divYearObtained">
                            <label for="YearObtained" class="mand_red">
                                Year Obtained</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:DropDownList ID="ddlYearObtained" runat="server"></asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvYearObtained" ControlToValidate="ddlYearObtained" InitialValue="-1"
                                        CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                        runat="server"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <div class="form_box">
                        <asp:Panel ID="pnlDriverDetails" runat="server" Width="100%">
                            <div id="divDrivers">
                                <div class="form_title">
                                    Driver Details</div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="form_subbox">
                                <asp:Panel ID="pnlDriver1" runat="server" Width="100%">
                                    <h3>
                                        <asp:Label ID="lblDriverNo1" runat="server" Text="Driver No: 1"></asp:Label>
                                        <asp:Label ID="lblDriverId1" Visible="false" runat="server"></asp:Label></h3>
                                    <div class="row">
                                        <label>
                                            Driver DOB/Gender</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:Label ID="lblDriverDOB1" runat="server" CssClass="fs_lbl"></asp:Label>
                                                <asp:Label ID="lblDriverGender1" runat="server" CssClass="fs_lbl_r"></asp:Label>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Name</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverName1" runat="server" CssClass="text" MaxLength="50"
                                                    Width="250px"></asp:TextBox>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverName1"
                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverName1"
                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Relationship to Proposer</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <uc10:usrRelationship ID="ddlDriverRelation1" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Experience</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverExperienceYear1" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                                <asp:DropDownList ID="ddlDriverExperienceMonth1" runat="server" Width="40px">
                                                    <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                                    <asp:ListItem Text="1">1</asp:ListItem>
                                                    <asp:ListItem Text="2">2</asp:ListItem>
                                                    <asp:ListItem Text="3">3</asp:ListItem>
                                                    <asp:ListItem Text="4">4</asp:ListItem>
                                                    <asp:ListItem Text="5"></asp:ListItem>
                                                    <asp:ListItem Text="6">6</asp:ListItem>
                                                    <asp:ListItem Text="7">7</asp:ListItem>
                                                    <asp:ListItem Text="8">8</asp:ListItem>
                                                    <asp:ListItem Text="9">9</asp:ListItem>
                                                    <asp:ListItem Text="10">10</asp:ListItem>
                                                    <asp:ListItem Text="11">11</asp:ListItem>
                                                </asp:DropDownList>(Month)
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Class</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverDrivingClass1" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="rfvDriverDrivingClass1" ControlToValidate="txtDriverDrivingClass1" ErrorMessage="" ValidationGroup="proposal"
                                                    CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Year Obtained</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverYearObtained1" runat="server"></asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="rfvDriverYearObtained1" ControlToValidate="ddlDriverYearObtained1" InitialValue="-1"
                                                    CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                                    runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlDriver2" runat="server" Width="100%">
                                    <h3>
                                        <asp:Label ID="lblDriverNo2" runat="server" Text="Driver No: 2"></asp:Label>
                                        <asp:Label ID="lblDriverId2" Visible="false" runat="server"></asp:Label></h3>
                                    <div class="row">
                                        <label>
                                            Driver DOB/Gender</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:Label ID="lblDriverDOB2" runat="server"></asp:Label>
                                                <asp:Label ID="lblDriverGender2" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Name</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverName2" runat="server" CssClass="text" MaxLength="50"
                                                    Width="250px"></asp:TextBox>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverName2"
                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverName2"
                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Relationship to Proposer</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <uc10:usrRelationship ID="ddlDriverRelation2" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Experience</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverExperienceYear2" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                                <asp:DropDownList ID="ddlDriverExperienceMonth2" runat="server" Width="40px">
                                                    <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                                    <asp:ListItem Text="1">1</asp:ListItem>
                                                    <asp:ListItem Text="2">2</asp:ListItem>
                                                    <asp:ListItem Text="3">3</asp:ListItem>
                                                    <asp:ListItem Text="4">4</asp:ListItem>
                                                    <asp:ListItem Text="5"></asp:ListItem>
                                                    <asp:ListItem Text="6">6</asp:ListItem>
                                                    <asp:ListItem Text="7">7</asp:ListItem>
                                                    <asp:ListItem Text="8">8</asp:ListItem>
                                                    <asp:ListItem Text="9">9</asp:ListItem>
                                                    <asp:ListItem Text="10">10</asp:ListItem>
                                                    <asp:ListItem Text="11">11</asp:ListItem>
                                                </asp:DropDownList>(Month)
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Class</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverDrivingClass2" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator
                                                    ID="rfvDriverDrivingClass2" ControlToValidate="txtDriverDrivingClass2" ErrorMessage="" ValidationGroup="proposal"
                                                    CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Year Obtained</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverYearObtained2" runat="server"></asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="rfvDriverYearObtained2" ControlToValidate="ddlDriverYearObtained2" InitialValue="-1"
                                                    CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                                    runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlDriver3" runat="server" Width="100%">
                                    <h3>
                                        <asp:Label ID="lblDriverNo3" runat="server" Text="Driver No: 3"></asp:Label>
                                        <asp:Label ID="lblDriverId3" Visible="false" runat="server"></asp:Label></h3>
                                    <div class="row">
                                        <label>
                                            Driver DOB/Gender</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:Label ID="lblDriverDOB3" runat="server"></asp:Label>
                                                <asp:Label ID="lblDriverGender3" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Name</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverName3" runat="server" CssClass="text" MaxLength="50"
                                                    Width="250px"></asp:TextBox>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverName3"
                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverName3"
                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Relationship to Proposer</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <uc10:usrRelationship ID="ddlDriverRelation3" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Experience</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverExperienceYear3" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                                <asp:DropDownList ID="ddlDriverExperienceMonth3" runat="server" Width="40px">
                                                    <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                                    <asp:ListItem Text="1">1</asp:ListItem>
                                                    <asp:ListItem Text="2">2</asp:ListItem>
                                                    <asp:ListItem Text="3">3</asp:ListItem>
                                                    <asp:ListItem Text="4">4</asp:ListItem>
                                                    <asp:ListItem Text="5"></asp:ListItem>
                                                    <asp:ListItem Text="6">6</asp:ListItem>
                                                    <asp:ListItem Text="7">7</asp:ListItem>
                                                    <asp:ListItem Text="8">8</asp:ListItem>
                                                    <asp:ListItem Text="9">9</asp:ListItem>
                                                    <asp:ListItem Text="10">10</asp:ListItem>
                                                    <asp:ListItem Text="11">11</asp:ListItem>
                                                </asp:DropDownList>(Month)
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Class</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverDrivingClass3" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator
                                                    ID="rfvDriverDrivingClass3" ControlToValidate="txtDriverDrivingClass3" ErrorMessage="" ValidationGroup="proposal"
                                                    CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Year Obtained</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverYearObtained3" runat="server"></asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="rfvDriverYearObtained3" ControlToValidate="ddlDriverYearObtained3" InitialValue="-1"
                                                    CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                                    runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlDriver4" runat="server" Width="100%">
                                    <h3>
                                        <asp:Label ID="lblDriverNo4" runat="server" Text="Driver No: 4"></asp:Label>
                                        <asp:Label ID="lblDriverId4" Visible="false" runat="server"></asp:Label></h3>
                                    <div class="row">
                                        <label>
                                            Driver DOB/Gender</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:Label ID="lblDriverDOB4" runat="server"></asp:Label>
                                                <asp:Label ID="lblDriverGender4" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Name</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverName4" runat="server" CssClass="text" MaxLength="50"
                                                    Width="250px"></asp:TextBox>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverName4"
                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverName4"
                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Relationship to Proposer</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <uc10:usrRelationship ID="ddlDriverRelation4" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Experience</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverExperienceYear4" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                                <asp:DropDownList ID="ddlDriverExperienceMonth4" runat="server" Width="40px">
                                                    <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                                    <asp:ListItem Text="1">1</asp:ListItem>
                                                    <asp:ListItem Text="2">2</asp:ListItem>
                                                    <asp:ListItem Text="3">3</asp:ListItem>
                                                    <asp:ListItem Text="4">4</asp:ListItem>
                                                    <asp:ListItem Text="5"></asp:ListItem>
                                                    <asp:ListItem Text="6">6</asp:ListItem>
                                                    <asp:ListItem Text="7">7</asp:ListItem>
                                                    <asp:ListItem Text="8">8</asp:ListItem>
                                                    <asp:ListItem Text="9">9</asp:ListItem>
                                                    <asp:ListItem Text="10">10</asp:ListItem>
                                                    <asp:ListItem Text="11">11</asp:ListItem>
                                                </asp:DropDownList>(Month)
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Class</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverDrivingClass4" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator
                                                    ID="rfvDriverDrivingClass4" ControlToValidate="txtDriverDrivingClass4" ErrorMessage="" ValidationGroup="proposal"
                                                    CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Year Obtained</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverYearObtained4" runat="server"></asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="rfvDriverYearObtained4" ControlToValidate="ddlDriverYearObtained4" InitialValue="-1"
                                                    CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                                    runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlDriver5" runat="server" Width="100%">
                                    <h3>
                                        <asp:Label ID="lblDriverNo5" runat="server" Text="Driver No: 5"></asp:Label>
                                        <asp:Label ID="lblDriverId5" Visible="false" runat="server"></asp:Label></h3>
                                    <div class="row">
                                        <label>
                                            Driver DOB/Gender</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:Label ID="lblDriverDOB5" runat="server"></asp:Label>
                                                <asp:Label ID="lblDriverGender5" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Name</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverName5" runat="server" CssClass="text" MaxLength="50"
                                                    Width="250px"></asp:TextBox>
                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverName5"
                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverName5"
                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Relationship to Proposer</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <uc10:usrRelationship ID="ddlDriverRelation5" runat="server" ErrorMessage="" ValidationGroup="proposal" />
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Experience</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverExperienceYear5" runat="server" Width="40px"></asp:DropDownList>(Year)&nbsp;
                                                <asp:DropDownList ID="ddlDriverExperienceMonth5" runat="server" Width="40px">
                                                    <asp:ListItem Selected="True" Text="0">0</asp:ListItem>
                                                    <asp:ListItem Text="1">1</asp:ListItem>
                                                    <asp:ListItem Text="2">2</asp:ListItem>
                                                    <asp:ListItem Text="3">3</asp:ListItem>
                                                    <asp:ListItem Text="4">4</asp:ListItem>
                                                    <asp:ListItem Text="5"></asp:ListItem>
                                                    <asp:ListItem Text="6">6</asp:ListItem>
                                                    <asp:ListItem Text="7">7</asp:ListItem>
                                                    <asp:ListItem Text="8">8</asp:ListItem>
                                                    <asp:ListItem Text="9">9</asp:ListItem>
                                                    <asp:ListItem Text="10">10</asp:ListItem>
                                                    <asp:ListItem Text="11">11</asp:ListItem>
                                                </asp:DropDownList>(Month)
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Class</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:TextBox ID="txtDriverDrivingClass5" runat="server" MaxLength="50"></asp:TextBox>
                                                <asp:RequiredFieldValidator
                                                    ID="rfvDriverDrivingClass5" ControlToValidate="txtDriverDrivingClass5" ErrorMessage="" ValidationGroup="proposal"
                                                    CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                    <div class="row">
                                        <label class="mand_red">
                                            Driving Licence Year Obtained</label>
                                        <div class="field">
                                            <span class="indicator">
                                                <asp:DropDownList ID="ddlDriverYearObtained5" runat="server"></asp:DropDownList>
                                                <asp:RequiredFieldValidator ID="rfvDriverYearObtained5" ControlToValidate="ddlDriverYearObtained5" InitialValue="-1"
                                                    CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="proposal"
                                                    runat="server"></asp:RequiredFieldValidator>
                                            </span>
                                        </div>
                                        <div class="clear">
                                        </div>
                                    </div>
                                </asp:Panel>
                            </div>
                        </asp:Panel>
                    </div>
                    <div id="divParticularsofCarHeader">
                        <div class="form_title" onclick="ShowHideDiv('divParticularsofCar',true)">
                            Particulars of the Car</div>
                        <div class="clear">
                        </div>
                    </div>
                    <div style="display: " class="form_box" id="divParticularsofCar">
                        <div class="row" id="divVehiclestatus">
                            <label for="Vehicle Status" class="mand_red">
                                Vehicle Used or New</label>
                            <div class="field">
                                <div class="radiol" id="divNew">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValVehicleStatus();CheckVehicleStatusValidationCss();"
                                            ID="rdoNew" runat="server" GroupName="vehiclestatus" />
                                        <asp:Label ID="lblNew" runat="server" Text="New"></asp:Label></span></div>
                                <div class="radior" id="divUsed">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValVehicleStatus();CheckVehicleStatusValidationCss();"
                                            ID="rdoUsed" runat="server" GroupName="vehiclestatus" />
                                        <asp:Label ID="lblUsed" runat="server" Text="Used"></asp:Label></span></div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtVehicleStatus" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvVehicleStatus" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtVehicleStatus" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>                    
                        <div class="row" id="divVehicleNo">
                            <label for="Vehicle No" class="mand_red">
                                Vehicle Registration No</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtVehicleNo" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvVehicleNo" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                        ValidationGroup="proposal" ControlToValidate="txtVehicleNo" Display="Dynamic"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divEngineNo">
                            <label for="EngineNo" class="mand_red">
                                Engine No</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtEngineNo" MaxLength="30" runat="server" class="text" Width="200px"></asp:TextBox>&nbsp;
                                    <asp:RequiredFieldValidator ID="rfvEngineNo" runat="server" CssClass="validationErrorControl"
                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtEngineNo"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divChassisNo">
                            <label for="ChassisNo" class="mand_red">
                                Chassis No</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtChassisNo" MaxLength="30" runat="server" class="text" Width="200px"></asp:TextBox>&nbsp;
                                    <asp:RequiredFieldValidator ID="rfvChassisNo" runat="server" CssClass="validationErrorControl"
                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtChassisNo"></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divVehicleTransmission">
                            <label for="Vehicle Transmission" class="mand_red">
                                Vehicle Transmission</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:DropDownList ID="ddlVehicleTransmission" runat="server">
                                        <asp:ListItem Value="-1">Select</asp:ListItem>
                                        <asp:ListItem Value="1">Transmission1</asp:ListItem>
                                        <asp:ListItem Value="2">Transmission2</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvVehicleTransmission" ControlToValidate="ddlVehicleTransmission"
                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divPropellant">
                            <label for="Vehicle Transmission" class="mand_red">
                                Vehicle Propellant</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:DropDownList ID="ddlVehiclePropellant" runat="server">
                                        <asp:ListItem Value="-1">Select</asp:ListItem>
                                        <asp:ListItem Value="1">Propellant1</asp:ListItem>
                                        <asp:ListItem Value="2">Propellant2</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvVehiclePropellant" ControlToValidate="ddlVehiclePropellant"
                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divVehicleSumInsured">
                            <label for="Vehicle Sum Insured" class="mand_red">
                                Vehicle Sum Insured (Cap?)</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox ID="txtVehicleSumInsured" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvVehicleSumInsured" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                        ValidationGroup="proposal" ControlToValidate="txtVehicleSumInsured" Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revVehicleSumInsured"
                                        runat="server" ControlToValidate="txtVehicleSumInsured" ErrorMessage=""
                                        ValidationGroup="proposal" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$" Display="Dynamic"></asp:RegularExpressionValidator> 
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divClaimDetails" style="display:">
                            <div class="row">
                                <label for="Claim OD Amount" class="mand_red">
                                    Claim OD Amount</label>
                                <div class="field">
                                    <div class="indicator" id="divClaimODAmount">
                                        <asp:TextBox ID="txtClaimODAmount" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvClaimODAmount" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                            ValidationGroup="proposal" ControlToValidate="txtClaimODAmount" Display="Dynamic" Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revClaimODAmount"
                                            runat="server" ControlToValidate="txtClaimODAmount" ErrorMessage=""
                                            ValidationGroup="proposal" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$" Display="Dynamic"
                                            SetFocusOnError="False" Enabled="false"></asp:RegularExpressionValidator>    
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <label for="ClaimTPPDAmount" class="mand_red">
                                    Claim TPPD Amount</label>
                                <div class="field">
                                    <div class="indicator" id="divClaimTPPDAmount">
                                        <asp:TextBox ID="txtClaimTPPDAmount" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvClaimTPPDAmount" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                            ValidationGroup="proposal" ControlToValidate="txtClaimTPPDAmount" Display="Dynamic" Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revClaimTPPDAmount"
                                            runat="server" ControlToValidate="txtClaimTPPDAmount" ErrorMessage=""
                                            ValidationGroup="proposal" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$" Display="Dynamic"
                                            SetFocusOnError="False" Enabled="false"></asp:RegularExpressionValidator>     
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divPolicyRDCOptedstatus">
                            <label for="Policy RDC Opted Status" class="mand_red">
                                Policy RDC Opted</label>
                            <div class="field">
                                <div class="radiol" id="divYesPolicyRDCOpted">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValPolicyRDCOpted();CheckPolicyRDCOptedValidationCss();"
                                            ID="rdoYesPolicyRDCOpted" runat="server" GroupName="policyrdcopted" />
                                        <asp:Label ID="lblYesPolicyRDCOpted" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoPolicyRDCOpted">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValPolicyRDCOpted();CheckPolicyRDCOptedValidationCss();"
                                            ID="rdoNoPolicyRDCOpted" runat="server" GroupName="policyrdcopted" />
                                        <asp:Label ID="lblNoPolicyRDCOpted" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtPolicyRDCOpted" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvPolicyRDCOpted" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtPolicyRDCOpted" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divHirePurchasestatus">
                            <label for="Other HirePurchase Status" class="mand_red">
                                Any hire purchase to your motor vehicle?</label>
                            <div class="field">
                                <div class="radiol" id="divYesHirePurchase">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',true);ValHirePurchase(true);CheckHirePurchaseValidationCss();"
                                            ID="rdoYesHirePurchase" runat="server" GroupName="hirepurchase" />
                                        <asp:Label ID="lblYesHirePurchase" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoHirePurchase">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divHirePurchase',false);ValHirePurchase(false);CheckHirePurchaseValidationCss();"
                                            ID="rdoNoHirePurchase" runat="server" GroupName="hirepurchase" />
                                        <asp:Label ID="lblNoHirePurchase" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtHirePurchase" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvHirePurchase" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtHirePurchase" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divHirePurchase" style="display: ;">
                            <div class="row" id="divHirePurchaseCompany">
                                <label for="HirePurchase Company" class="mand_red">
                                    Name of the Hire Purchase/Finance Co.</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlHirePurchaseCompany" Width="300px" runat="server">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvHirePurchaseCompany" ControlToValidate="ddlHirePurchaseCompany"
                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator></span></div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divDrivingWestMalaysiastatus">
                            <label for="Driving West Malaysia Status" class="mand_red">
                                Do you drive your car to West Malaysia?</label>
                            <div class="field">
                                <div class="radiol" id="divYesDrivingWestMalaysia">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divDrivingWestMalaysia',true);ValDrivingWestMalaysia(true);CheckDrivingWestMalaysiaValidationCss();"
                                            ID="rdoYesDrivingWestMalaysia" runat="server" GroupName="existinginsurer" />
                                        <asp:Label ID="lblYesDrivingWestMalaysia" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoDrivingWestMalaysia">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divDrivingWestMalaysia',false);ValDrivingWestMalaysia(false);CheckDrivingWestMalaysiaValidationCss();"
                                            ID="rdoNoDrivingWestMalaysia" runat="server" GroupName="existinginsurer" />
                                        <asp:Label ID="lblNoDrivingWestMalaysia" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtDrivingWestMalaysia" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvDrivingWestMalaysia" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDrivingWestMalaysia" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divDrivingWestMalaysia" style="display: ;">
                            <div class="row" id="divHowoften">
                                <label for="How often?" class="mand_red">
                                    How often?</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlDrivetowestmalaysia" runat="server">
                                            <asp:ListItem Value="-1">Select</asp:ListItem>
                                            <asp:ListItem Value="Weekly">Weekly</asp:ListItem>
                                            <asp:ListItem Value="Monthly">Monthly</asp:ListItem>
                                            <asp:ListItem Value="Less than monthly">Less than monthly</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvDrivetowestmalaysia" ControlToValidate="ddlDrivetowestmalaysia"
                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divAccessories">
                            <label for="Accessories">
                                Accessories (otherthan factory fitted)</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:CheckBox ID="chkAircon" runat="server" />Air Con<br />
                                    <asp:CheckBox ID="chkRadio" runat="server" />Radio/Cassette/CD Player<br />
                                    <asp:CheckBox ID="chkSports" runat="server" />Sports Rims<br />
                                    <asp:CheckBox ID="chkSunroof" runat="server" />Sun Roof<br />
                                    <asp:CheckBox ID="chkMoonroof" runat="server" />Moon Roof<br />
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divOtherAccessories">
                            <label for="Other Accessories">
                                Others (Pls specify)</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox runat="server" ID="txtOtherAccessories" MaxLength="250" Width="300px"></asp:TextBox>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divVechicleModificationStatus">
                            <label for="Vechicle Modification Status" class="mand_red">
                                Has the vehicle been modified/altered from the original manufacturer's specifications?</label>
                            <div class="field">
                                <div class="radiol" id="divYesVechicleModification">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divVechicleModification',true);ValVechicleModification(true);CheckVechicleModificationValidationCss();"
                                            ID="rdoYesVechicleModification" runat="server" GroupName="vechiclemodification" />
                                        <asp:Label ID="lblYesVechicleModification" runat="server" Text="Yes"></asp:Label>
                                    </span>
                                </div>
                                <div class="radior" id="divNoVechicleModification">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divVechicleModification',false);ValVechicleModification(false);CheckVechicleModificationValidationCss();"
                                            ID="rdoNoVechicleModification" runat="server" GroupName="vechiclemodification" />
                                        <asp:Label ID="lblNoVechicleModification" runat="server" Text="No"></asp:Label>
                                    </span>
                                </div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtVechicleModification" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvVechicleModification" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtVechicleModification"
                                    ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divVechicleModification">
                            <div class="row">
                                <label for="VechicleModification" class="mand_red">
                                    Please give complete details</label>
                                <div class="field">
                                    <div id="divVMPleasespecify">
                                        <asp:TextBox ID="txtVMReason" runat="server" Columns="60" MaxLength="250" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvVMReason" ControlToValidate="txtVMReason" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divMarketvaluestatus">
                            <label for="Market value Status" class="mand_red">
                                Please indicate your choice to cover Market value</label>
                            <div class="field">
                                <div class="radiol" id="divYesCOE">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValMarketvalue();CheckMarketvalueValidationCss();"
                                            ID="rdoYesCOE" runat="server" GroupName="marketvalue" />
                                        <asp:Label ID="lblYesCOE" runat="server" Text="With COE/PARF"></asp:Label></span></div>
                                <div class="radior" id="divNoCOE">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValMarketvalue();CheckMarketvalueValidationCss();"
                                            ID="rdoNoCOE" runat="server" GroupName="marketvalue" />
                                        <asp:Label ID="lblNoCOE" runat="server" Text="Without COE/PARF"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtMarketvalue" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvMarketvalue" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtMarketvalue" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <div class="blacksmall">
                                <i>Extensions Required (Additional Premium involved).</i>
                            </div>
                        </div>
                        <div class="row" id="divCarRentalExtensionstatus">
                            <label for="Car Rental Extension Status" class="mand_red">
                                Car Rental Extension</label>
                            <div class="field">
                                <div class="radiol" id="divYesCarRentalExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="SetPremiumValue();ValCarRentalExtension();CheckCarRentalExtensionValidationCss();"
                                            ID="rdoYesCarRentalExtension" runat="server" GroupName="carrentalextension" />
                                        <asp:Label ID="lblYesCarRentalExtension" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoCarRentalExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="SetPremiumValue();ValCarRentalExtension();CheckCarRentalExtensionValidationCss();"
                                            ID="rdoNoCarRentalExtension" runat="server" GroupName="carrentalextension" />
                                        <asp:Label ID="lblNoCarRentalExtension" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtCarRentalExtension" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvCarRentalExtension" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtCarRentalExtension" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divNCDProtectorstatus" style="display:">
                            <label for="NCD Protector Status" class="mand_red">
                                NCD Protector</label>
                            <div class="field">
                                <div class="radiol" id="divYesNCDProtector">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="SetPremiumValue();ValNCDProtector(true);CheckNCDProtectorValidationCss();"
                                            ID="rdoYesNCDProtector" runat="server" GroupName="ncdprotector" />
                                        <asp:Label ID="lblYesNCDProtector" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoNCDProtector">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="SetPremiumValue();ValNCDProtector(false);CheckNCDProtectorValidationCss();"
                                            ID="rdoNoNCDProtector" runat="server" GroupName="ncdprotector" />
                                        <asp:Label ID="lblNoNCDProtector" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtNCDProtector" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvNCDProtector" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtNCDProtector" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divPremiumRates" style="display:">
                            <div class="row">
                                <label for="ExistingPremiumAmount">
                                    Existing Premium Amount</label>
                                <div class="field">
                                    <div class="indicator" id="div3">
                                        <span class="indicator">
                                            <asp:Label ID="lblExistingPremium" runat="server"></asp:Label></span></div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div id="divPremium1" style="display:">
                                <div class="row">
                                    <label for="NewPremiumAmount1">
                                        New Premium Amount</label>
                                    <div class="field">
                                        <div class="indicator" id="div4">
                                            <span class="indicator">
                                                <asp:Label ID="lblNewPremium1" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                            <div id="divPremium2" style="display:">
                                <div class="row">
                                    <label for="NewPremiumAmount2">
                                        New Premium Amount</label>
                                    <div class="field">
                                        <div class="indicator" id="div2">
                                            <span class="indicator">
                                                <asp:Label ID="lblNewPremium2" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                            <div id="divPremium3" style="display:">
                                <div class="row">
                                    <label for="NewPremiumAmount3">
                                        New Premium Amount</label>
                                    <div class="field">
                                        <div class="indicator" id="div6">
                                            <span class="indicator">
                                                <asp:Label ID="lblNewPremium3" runat="server"></asp:Label>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divDealerWorkshopExtensionstatus">
                            <label for="Dealer Workshop Extension Status" class="mand_red">
                                Dealer's Workshop Extension</label>
                            <div class="field">
                                <div class="radiol" id="divYesDealerWorkshopExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValDealerWorkshopExtension();CheckDealerWorkshopExtensionValidationCss();"
                                            ID="rdoYesDealerWorkshopExtension" runat="server" GroupName="dealerworkshopextension" />
                                        <asp:Label ID="lblYesDealerWorkshopExtension" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoDealerWorkshopExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValDealerWorkshopExtension();CheckDealerWorkshopExtensionValidationCss();"
                                            ID="rdoNoDealerWorkshopExtension" runat="server" GroupName="dealerworkshopextension" />
                                        <asp:Label ID="lblNoDealerWorkshopExtension" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtDealerWorkshopExtension" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvDealerWorkshopExtension" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDealerWorkshopExtension" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row" id="divSunRoofExtensionstatus">
                            <label for="Sun Roof Extension Status" class="mand_red">
                                Sun Roof Extension</label>
                            <div class="field">
                                <div class="radiol" id="divYesSunRoofExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divSunroofExtension',true);ValSunRoofExtension(true);CheckSunRoofExtensionValidationCss();"
                                            ID="rdoYesSunRoofExtension" runat="server" GroupName="sunroofextension" />
                                        <asp:Label ID="lblYesSunRoofExtension" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoSunRoofExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divSunroofExtension',false);ValSunRoofExtension(false);CheckSunRoofExtensionValidationCss();"
                                            ID="rdoNoSunRoofExtension" runat="server" GroupName="sunroofextension" />
                                        <asp:Label ID="lblNoSunRoofExtension" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtSunRoofExtension" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvSunRoofExtension" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtSunRoofExtension" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divSunroofExtension">
                            <div class="row">
                                <label for="SunroofExtension" class="mand_red">
                                    Sunroof Extension Amount</label>
                                <div class="field">
                                    <div id="divSRAmt">
                                        <asp:TextBox ID="txtSunroofExtenAmt" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvSunroofExtenAmt" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                            ValidationGroup="proposal" ControlToValidate="txtSunroofExtenAmt" Display="Dynamic" Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revSunroofExtenAmt"
                                            runat="server" ControlToValidate="txtSunroofExtenAmt" ErrorMessage=""
                                            ValidationGroup="proposal" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$" Display="Dynamic"
                                            SetFocusOnError="False" Enabled="false"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divMoonRoofExtensionstatus">
                            <label for="Moon Roof Extension Status" class="mand_red">
                                Moon Roof Extension</label>
                            <div class="field">
                                <div class="radiol" id="divYesMoonRoofExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divMoonroofExtension',true);ValMoonRoofExtension(true);CheckMoonRoofExtensionValidationCss();"
                                            ID="rdoYesMoonRoofExtension" runat="server" GroupName="moonroofextension" />
                                        <asp:Label ID="lblYesMoonRoofExtension" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoMoonRoofExtension">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divMoonroofExtension',false);ValMoonRoofExtension(false);CheckMoonRoofExtensionValidationCss();"
                                            ID="rdoNoMoonRoofExtension" runat="server" GroupName="moonroofextension" />
                                        <asp:Label ID="lblNoMoonRoofExtension" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtMoonRoofExtension" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvMoonRoofExtension" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtMoonRoofExtension" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divMoonroofExtension">
                            <div class="row">
                                <label for="MoonroofExtension" class="mand_red">
                                    Moonroof Extension Amount</label>
                                <div class="field">
                                    <div id="divMRAmt">
                                        <asp:TextBox ID="txtMoonroofExtenAmt" runat="server" class="text" MaxLength="10"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvMoonroofExtenAmt" runat="server" CssClass="validationErrorControl" ErrorMessage=""
                                            ValidationGroup="proposal" ControlToValidate="txtMoonroofExtenAmt" Display="Dynamic" Enabled="false"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="revMoonroofExtenAmt"
                                            runat="server" ControlToValidate="txtMoonroofExtenAmt" ErrorMessage=""
                                            ValidationGroup="proposal" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$" Display="Dynamic"
                                            SetFocusOnError="False" Enabled="false"></asp:RegularExpressionValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divOtherExtension">
                            <label for="OtherExtension">
                                Others (Pls specify)</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:TextBox runat="server" ID="txtOtherExtension" MaxLength="250" Width="300px"></asp:TextBox>
                                </span>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <div id="divGeneralQuestionHeader">
                        <div class="form_title" onclick="ShowHideDiv('divGeneralQuestion',true)">
                            General Questions</div>
                        <div class="clear">
                        </div>
                    </div>
                    <div style="display: " class="form_box" id="divGeneralQuestion">
                        <div class="row">
                            <div class="blacksmall">
                                <i>(If your answer to question (2) is "Yes", please give full details on a separate piece of paper).</i>
                            </div>
                        </div>
                        <div class="row" id="divPurposeofusestatus">
                            <label for="Purpose of use Status" class="mand_red">
                             (1) Is the car used only for social, domestic and pleasure purposesand your business or profession?</label>
                            <div class="field">
                                <div class="radiol" id="divYesPurposeofuse">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValPurposeofuse();CheckPurposeofuseValidationCss();"
                                            ID="rdoYesPurposeofuse" runat="server" GroupName="purposeofuse" />
                                        <asp:Label ID="lblYesPurposeofuse" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoPurposeofuse">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ValPurposeofuse();CheckPurposeofuseValidationCss();"
                                            ID="rdoNoPurposeofuse" runat="server" GroupName="purposeofuse" />
                                        <asp:Label ID="lblNoPurposeofuse" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtPurposeofuse" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvPurposeofuse" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtPurposeofuse" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="row">
                            <div class="blacksmall">(2) Have you or any drivers stated in this proposal form:</div>
                        </div>
                        <div class="row" id="divPhysicalinfirmStatus">
                            <label for="Physical infirm Status" class="mand_red">
                                (a)Any physical or mental infirmity or defective hearing or vision (other than defective vision which can be 
                                corrected by spectacles or contact lens)?</label>
                            <div class="field">
                                <div class="radiol" id="divYesPhysicalinfirm">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divPhysicalinfirm',true);ValPhysicalinfirm(true);CheckPhysicalinfirmValidationCss();"
                                            ID="rdoYesPhysicalinfirm" runat="server" GroupName="physicalinfirm" />
                                        <asp:Label ID="lblYesPhysicalinfirm" runat="server" Text="Yes"></asp:Label>
                                    </span>
                                </div>
                                <div class="radior" id="divNoPhysicalinfirm">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divPhysicalinfirm',false);ValPhysicalinfirm(false);CheckPhysicalinfirmValidationCss();"
                                            ID="rdoNoPhysicalinfirm" runat="server" GroupName="physicalinfirm" />
                                        <asp:Label ID="lblNoPhysicalinfirm" runat="server" Text="No"></asp:Label>
                                    </span>
                                </div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtPhysicalinfirm" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvPhysicalinfirm" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtPhysicalinfirm"
                                    ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divPhysicalinfirm">
                            <div class="row">
                                <label for="VechicleModification" class="mand_red">
                                    Please give complete details</label>
                                <div class="field">
                                    <div id="divPIPleasespecify">
                                        <asp:TextBox ID="txtPIReason" runat="server" Columns="60" MaxLength="250" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvPIReason" ControlToValidate="txtPIReason" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divAccidentStatus">
                            <label for="Accident Status" class="mand_red">
                                (b)Been involved in any accident in the last 3 years?</label>
                            <div class="field">
                                <div class="radiol" id="divYesAccident">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divAccident',true);ValAccident(true);CheckAccidentValidationCss();"
                                            ID="rdoYesAccident" runat="server" GroupName="accident" />
                                        <asp:Label ID="lblYesAccident" runat="server" Text="Yes"></asp:Label>
                                    </span>
                                </div>
                                <div class="radior" id="divNoAccident">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divAccident',false);ValAccident(false);CheckAccidentValidationCss();"
                                            ID="rdoNoAccident" runat="server" GroupName="accident" />
                                        <asp:Label ID="lblNoAccident" runat="server" Text="No"></asp:Label>
                                    </span>
                                </div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtAccident" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvAccident" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtAccident"
                                    ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divAccident">
                            <div class="row">
                                <label for="Accident" class="mand_red">
                                    Please give complete details</label>
                                <div class="field">
                                    <div id="divAIPleasespecify">
                                        <asp:TextBox ID="txtAIReason" runat="server" Columns="60" MaxLength="250" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvAIReason" ControlToValidate="txtAIReason" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divTrafficStatus">
                            <label for="Traffic Status" class="mand_red">
                                (c)Any traffic convictions (apart from parking fines) in the last 3 years?</label>
                            <div class="field">
                                <div class="radiol" id="divYesTraffic">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divTraffic',true);ValTraffic(true);CheckTrafficValidationCss();"
                                            ID="rdoYesTraffic" runat="server" GroupName="traffic" />
                                        <asp:Label ID="lblYesTraffic" runat="server" Text="Yes"></asp:Label>
                                    </span>
                                </div>
                                <div class="radior" id="divNoTraffic">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divTraffic',false);ValTraffic(false);CheckTrafficValidationCss();"
                                            ID="rdoNoTraffic" runat="server" GroupName="traffic" />
                                        <asp:Label ID="lblNoTraffic" runat="server" Text="No"></asp:Label>
                                    </span>
                                </div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtTraffic" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvTraffic" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtTraffic"
                                    ValidationGroup="proposal" Text=""></asp:RequiredFieldValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divTraffic">
                            <div class="row">
                                <label for="Traffic" class="mand_red">
                                    Please give complete details</label>
                                <div class="field">
                                    <div id="divTCPleasespecify">
                                        <asp:TextBox ID="txtTCReason" runat="server" Columns="60" MaxLength="250" Rows="2" TextMode="MultiLine"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvTCReason" ControlToValidate="txtTCReason" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                        <div class="row" id="divInsuranceterminatedStatus">
                            <label for="Vechicle Convicted Status" class="mand_red">
                             (d) Had any motor insurance application declined, cancelled or renewal rejected by any insurance company?</label>
                            <div class="field">
                                <div class="radiol" id="divYesInsuranceterminated">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',true);ValInsuranceterminated(true);CheckInsuranceterminatedValidationCss();"
                                            ID="rdoYesInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                        <asp:Label ID="lblYesInsuranceterminated" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoInsuranceterminated">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divInsuranceterminated',false);ValInsuranceterminated(false);CheckInsuranceterminatedValidationCss();"
                                            ID="rdoNoInsuranceterminated" runat="server" GroupName="insuranceterminated" />
                                        <asp:Label ID="lblNoInsuranceterminated" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtInsuranceterminated" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvInsuranceterminated" runat="server" CssClass="validationErrorControl"
                                    ErrorMessage="" ControlToValidate="txtInsuranceterminated" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divInsuranceterminated">
                                <div class="row">
                                    <label for="Insurance Terminated" class="mand_red">
                                        Please give complete details</label>
                                    <div class="field">
                                        <div id="divITPleasespecify">
                                            <asp:TextBox ID="txtITReason" Columns="60" MaxLength="250" Rows="2" TextMode="MultiLine"
                                                class="text" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="rfvITReason"
                                                    ControlToValidate="txtITReason" ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                    runat="server"></asp:RequiredFieldValidator></div>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </div>
                        <div class="row" id="divDermeritPointsStatus">
                            <label for="Dermerit Points Status" class="mand_red">
                                (e) Been given/accumulated demerit points during the last 24 months?</label>
                            <div class="field">
                                <div class="radiol" id="divYesDermeritPoints">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',true);ValDermeritPoints(true);CheckDermeritPointsValidationCss();"
                                            ID="rdoYesDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                        <asp:Label ID="lblYesDermeritPoints" runat="server" Text="Yes"></asp:Label>
                                    </span>
                                </div>
                                <div class="radior" id="divNoDermeritPoints">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divDermeritPoints',false);ValDermeritPoints(false);CheckDermeritPointsValidationCss();"
                                            ID="rdoNoDermeritPoints" runat="server" GroupName="dermeritpoints" />
                                        <asp:Label ID="lblNoDermeritPoints" runat="server" Text="No"></asp:Label>
                                    </span>
                                </div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtDermeritPoints" runat="server"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvDermeritPoints" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtDermeritPoints" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator>
                            </div>
                            <div class="clear">
                            </div>
                        </div>
                        <div style="display: " id="divDermeritPoints">
                            <div class="row">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            Driver
                                        </td>
                                        <td>
                                            Total Demerit Points
                                        </td>
                                        <td>
                                            Date
                                        </td>
                                        <td>
                                            Type of Offence
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername1" runat="server" MaxLength="50"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvDemeritDrivername1" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtDemeritDrivername1" ValidationGroup="proposal"
                                                Text=""></asp:RequiredFieldValidator>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints1" runat="server" MaxLength="2"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvTotalpoints1" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtTotalpoints1" ValidationGroup="proposal"
                                                Text=""></asp:RequiredFieldValidator>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit1" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype1" runat="server" MaxLength="100"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="rfvOffencetype1" runat="server" CssClass="validationErrorControl"
                                                Display="Dynamic" ErrorMessage="" ControlToValidate="txtOffencetype1" ValidationGroup="proposal"
                                                Text=""></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername2" runat="server" MaxLength="50" onblur="CheckDriver2Validation();"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints2" runat="server" MaxLength="2"></asp:TextBox>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit2" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype2" runat="server" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername3" MaxLength="50" onblur="CheckDriver3Validation();"
                                                runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints3" runat="server" MaxLength="2"></asp:TextBox>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit3" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype3" runat="server" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername4" MaxLength="50" onblur="CheckDriver4Validation();"
                                                runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints4" runat="server" MaxLength="2"></asp:TextBox>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit4" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype4" runat="server" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername5" MaxLength="50" onblur="CheckDriver5Validation();"
                                                runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints5" runat="server" MaxLength="2"></asp:TextBox>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit5" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype5" runat="server" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="txtDemeritDrivername6" MaxLength="50" onblur="CheckDriver6Validation();"
                                                runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtTotalpoints6" runat="server" MaxLength="2"></asp:TextBox>
                                        </td>
                                        <td>
                                            <uc2:usrDate ID="ddlDODemerit6" ErrorMessage="" runat="server" ValidationGroup="proposal">
                                            </uc2:usrDate>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtOffencetype6" runat="server" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                                </table>
                                <div class="clear">
                                </div>
                            </div>
                        </div> 
                    </div>
                    <div id="divPreviousInsuranceHeader">
                        <div class="form_title" onclick="ShowHideDiv('divPreviousInsurance',true)">
                            Details of Previous Insurance</div>
                        <div class="clear">
                        </div>
                    </div>
                    <div style="display: " class="form_box" id="divPreviousInsurance">
                        <div class="row">
                            <div class="blacksmall">
                                For the purpose of NCD confirmation, please advise on:
                            </div>
                        </div>
                        <%--<div class="row" id="divExistingInsurerstatus">
                            <label for="Existing Insurer Status" class="mand_red">
                                Do you have any motor vehicle insurance?</label>
                            <div class="field">
                                <div class="radiol" id="divYesExistingInsurer">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divExistingInsurer',true);ValExistingInsurer(true);CheckExistingInsurerValidationCss();"
                                            ID="rdoYesExistingInsurer" runat="server" GroupName="existinginsurer" />
                                        <asp:Label ID="lblYesExistingInsurer" runat="server" Text="Yes"></asp:Label></span></div>
                                <div class="radior" id="divNoExistingInsurer">
                                    <span class="indicator">
                                        <asp:RadioButton onclick="ShowHideDiv('divExistingInsurer',false);ValExistingInsurer(false);CheckExistingInsurerValidationCss();"
                                            ID="rdoNoExistingInsurer" runat="server" GroupName="existinginsurer" />
                                        <asp:Label ID="lblNoExistingInsurer" runat="server" Text="No"></asp:Label></span></div>
                                <div style="display: none">
                                    <<asp:TextBox ID="txtExistingInsurer" runat="server" Text ="1"></asp:TextBox></div>
                                <asp:RequiredFieldValidator ID="rfvExistingInsurer" runat="server" CssClass="validationErrorControl"
                                    Display="Dynamic" ErrorMessage="" ControlToValidate="txtExistingInsurer" ValidationGroup="proposal"
                                    Text=""></asp:RequiredFieldValidator></div>
                            <div class="clear">
                            </div>
                        </div>--%>
                        <div class="row" id="divInsuranceCompany">
                            <label for="InsuranceCompany" class="mand_red">
                                Existing Insurer</label>
                            <div class="field">
                                <span class="indicator">
                                    <asp:DropDownList ID="ddlExistingInsurerName" Width="300px" runat="server" onchange="javascript:if (this.value != '177') { ShowHideDiv('divExistingInsurer',true); }ShowInsurerStatus();">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvExistingInsurerName" ControlToValidate="ddlExistingInsurerName"
                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator></span></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div id="divExistingInsurer" style="display: ;">
<%--                            <div class="row" id="divInsuranceCompany">
                                <label for="InsuranceCompany" class="mand_red">
                                    Existing Insurer</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlExistingInsurerName" Width="300px" runat="server">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvExistingInsurerName" ControlToValidate="ddlExistingInsurerName"
                                            CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                            Text="" ErrorMessage=""></asp:RequiredFieldValidator></span></div>
                                <div class="clear">
                                </div>
                            </div>--%>
                            <div class="row" id="divInsRegnNo">
                                <label for="Ins RegnNo" class="mand_red">
                                    Regn. No</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:TextBox ID="txtInsRegisterNo" runat="server" class="text" MaxLength="25"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvInsRegisterNo" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtInsRegisterNo"
                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divExistNCD">
                                <label for="Exist NCD" class="mand_red">
                                    NCD</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlExistNCD" runat="server">
                                            <asp:ListItem Value="-1">Select</asp:ListItem>
                                            <asp:ListItem Value="0">0</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="20">20</asp:ListItem>
                                            <asp:ListItem Value="30">30</asp:ListItem>
                                            <asp:ListItem Value="40">40</asp:ListItem>
                                            <asp:ListItem Value="50">50</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="rfvExistNCD" ControlToValidate="ddlExistNCD"
                                        CssClass="validationErrorControl" runat="server" InitialValue="-1" ValidationGroup="proposal"
                                        Text="" ErrorMessage=""></asp:RequiredFieldValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divInsPolicyNo">
                                <label for="Ins Policy No" class="mand_red">
                                    Policy No</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:TextBox ID="txtInsPolicyNo" runat="server" class="text" MaxLength="25"></asp:TextBox><asp:RequiredFieldValidator
                                            ID="rfvInsPolicyNo" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtInsPolicyNo"
                                            Display="Dynamic"></asp:RequiredFieldValidator></span></div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divInsCanceldate">
                                <label for="Date of Cancellation" class="mand_red">
                                    Expiry / Cancellation Date</label>
                                <div class="field">
                                    <span class="indicator">
                                        <uc2:usrDate ID="ddlDOCancellation" ErrorMessage="" runat="server" ValidationGroup="proposal" />
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="divDeclarationHeader">
                        <div class="form_title" onclick="ShowHideDiv('divDeclaration',true)">
                            Declaration</div>
                        <div class="clear">
                        </div>
                    </div>
                    <div style="display: " class="form_box" id="divDeclaration">
                            <div class="row">
                                <div class="blacksmall">
                                    <p>Please check your proposal carefully before signing the declaration below. This is especially important if the 
                                    proposal is not completed in your own hand.</p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="blacksmall">
                                    <p>I declare to the best of my knowledge and belief that:</p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="blacksmall">
                                    <p>(a) all the answers given in this Proposal are true;</p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="blacksmall">
                                    <p>(b) all materials facts/information affecting the assessment of the risk have been disclosed;</p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="blacksmall">
                                    <p>(c) all persons proposed are in good health and free from any physical defect or infirmity.
                                    <img id='imgDeclaration' alt="Click to show/hide More Info" border="0" src="../../images/icons/sort_down.GIF"
                                            onclick="showhide('divMoredeclare');" /></p>
                                </div>
                                <div id="divMoredeclare" style="display: ">
                                    <div class="blacksmall">
                                        <p>I agree that this Proposal and Declaration shall be the basis of the contract between me and 
                                        Royal & Sun Alliance Insurance Plc (Singapore Branch) and shall be deemed to be incorporated in such
                                        contract, subject to the terms and conditions of the policy. No insurance will be in force until this Proposal
                                        has been accepted by Royal & Sun Alliance Insurance Plc (Singapore Branch).</p>
                                    </div>
                                    <div class="blacksmall">
                                        <p>I undertake the car to be insured is and will be kept in good condition, and will not be driven by any
                                        one who to my knowledge has been refused motor vehicle insurance or continuance thereof.</p>
                                    </div>
                                    <div class="blacksmall">
                                        <p>If this proposal was not completed by me personally, I declare also that I have read the completed form
                                        carefully and will accept full responsibility for the answers.</p>
                                    </div>
                                    <div class="blacksmall">
                                        <p>I agree to give my concent to Royal & Sun Alliance Insurance Plc (Singapore Branch) to verify the information 
                                        provided in the Proposal with the relevant parties.</p>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="radiol">
                                    <asp:CheckBox onclick="CheckAgreed()" ID="chkAgreed" runat="server" Text="" />
                                    <span>I agree to the above statement.</span> <span>
                                        <asp:RequiredFieldValidator ControlToValidate="txtAgreed" ID="rfvAgreed" runat="server"
                                            CssClass="validationErrorControl" ErrorMessage="You must agree to the Declaration & Authorization below."
                                            Text="You must agree to the Declaration & Authorization." ValidationGroup="proposal"></asp:RequiredFieldValidator></span></div>
                                <div style="display: none">
                                    <asp:TextBox ID="txtAgreed" runat="server" />

                                    <script type="text/javascript">
                                        function CheckAgreed() {
                                            var ctrlTxt = document.getElementById('<%=txtAgreed.ClientID%>');
                                            var ctrlY = document.getElementById('<%=chkAgreed.ClientID%>');
                                            var valCtrl = document.getElementById('<%=rfvAgreed.ClientID%>');
                                            if (ctrlY.checked == true) {
                                                ctrlTxt.value = '1';
                                                valCtrl.style.visibility = 'hidden';
                                                ShowHideDiv('divPaymentMode', true);
                                                }
                                            else {
                                                ctrlTxt.value = '';
                                                ShowHideDiv('divPaymentMode', false);

                                            }
                                        }
                                    </script>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                    <div id="divPaymentModeHeader">
                        <div class="form_title" onclick="ShowHideDiv('divPaymentMode',true)">
                            Payment Mode</div>
                        <div class="clear">
                        </div>
                    </div>
                    <div style="display: " class="form_box" id="divPaymentMode">
                            <div class="row">
                                <div class="blacksmall">
                                    <p>
                                        I / We authorised <b>Royal & Sun Alliance Insurance Plc(Singapore Branch)</b> to debit the premium
                                        amount due in connection with above insurance policy to my nominated Credit Card
                                        Account. Where a third party Credit Card is used, I declared that the cardholder
                                        has authorised and consented to its use.</p>
                                </div>
                            </div>
                            <div class="row" id="divNameoftheCard">
                                <label for="NameoftheCard" class="mand_red">
                                    Cardholder's Name</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:TextBox ID="txtNameoftheCard" runat="server" MaxLength="50"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvNameoftheCard" ControlToValidate="txtNameoftheCard"
                                            ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                            runat="server"></asp:RequiredFieldValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divIssuingBank">
                                <label for="Issuing Bank" class="mand_red">
                                    Issuing Bank</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:TextBox ID="txtIssuingBank" runat="server" MaxLength="50"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvIssuingBank" ControlToValidate="txtIssuingBank"
                                            ErrorMessage="" ValidationGroup="proposal" CssClass="validationErrorControl"
                                            runat="server"></asp:RequiredFieldValidator>
                                    </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divCardNo">
                                <label for="CardNo" class="mand_red">
                                    Credit Card Number</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:TextBox ID="txtCardNo1" runat="server" MaxLength="4" Width="50px"></asp:TextBox>-</span>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtCardNo2" runat="server" MaxLength="4" Width="50px"></asp:TextBox>-</span>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtCardNo3" runat="server" MaxLength="4" Width="50px"></asp:TextBox>-</span>
                                    <span class="indicator">
                                        <asp:TextBox ID="txtCardNo4" runat="server" MaxLength="4" Width="50px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="rfvCardNo1" ControlToValidate="txtCardNo1" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revCardNo1" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo1"></asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="rfvCardNo2" ControlToValidate="txtCardNo2" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revCardNo2" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo2"></asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="rfvCardNo3" ControlToValidate="txtCardNo3" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revCardNo3" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo3"></asp:RegularExpressionValidator>
                                        <asp:RequiredFieldValidator ID="rfvCardNo4" ControlToValidate="txtCardNo4" ErrorMessage=""
                                            ValidationGroup="proposal" CssClass="validationErrorControl" runat="server"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="revCardNo4" runat="server" CssClass="validationErrorControl"
                                            ErrorMessage="" ValidationGroup="proposal" ValidationExpression="[0-9]{4}" ControlToValidate="txtCardNo4"></asp:RegularExpressionValidator>
                                    </span>
                                    <div style="clear: both">
                                        <asp:CustomValidator CssClass="validationErrorControl" ControlToValidate="txtCreditCardValid"
                                            ValidationGroup="proposal" ID="csvCreditCardValid" runat="server" ErrorMessage="Credit Card number not valid."
                                            Text="" OnServerValidate="csvCreditCardValid_ServerValidate"></asp:CustomValidator>
                                    </div>
                                    <div class="row" style="display: none">
                                        <asp:TextBox ID="txtCreditCardValid" Text="Valid" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divCardExpiry">
                                <label for="Card Expiry Date" class="mand_red">
                                    Card Expiry Date</label>
                                <div class="field">
                                    <span class="indicator">
                                        <asp:DropDownList ID="ddlCardExpiryMonth" runat="server">
                                            <asp:ListItem Selected="True" Value="-1">mm</asp:ListItem>
                                            <asp:ListItem Value="01">01</asp:ListItem>
                                            <asp:ListItem Value="02">02</asp:ListItem>
                                            <asp:ListItem Value="03">03</asp:ListItem>
                                            <asp:ListItem Value="04">04</asp:ListItem>
                                            <asp:ListItem Value="05">05</asp:ListItem>
                                            <asp:ListItem Value="06">06</asp:ListItem>
                                            <asp:ListItem Value="07">07</asp:ListItem>
                                            <asp:ListItem Value="08">08</asp:ListItem>
                                            <asp:ListItem Value="09">09</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="11">11</asp:ListItem>
                                            <asp:ListItem Value="12">12</asp:ListItem>
                                        </asp:DropDownList>
                                        /</span> <span class="indicator">
                                            <asp:DropDownList ID="ddlCardExpiryYear" runat="server">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="rfvCardExpiryMonth" ControlToValidate="ddlCardExpiryMonth"
                                                ErrorMessage="" ValidationGroup="proposal" InitialValue="-1" Text="" CssClass="validationErrorControl"
                                                runat="server"></asp:RequiredFieldValidator>
                                            <asp:RequiredFieldValidator ID="rfvCardExpiryYear" ControlToValidate="ddlCardExpiryYear"
                                                ErrorMessage="" ValidationGroup="proposal" InitialValue="-1" Text="" CssClass="validationErrorControl"
                                                runat="server"></asp:RequiredFieldValidator>
                                        </span>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row" id="divCardType">
                                <label for="CardType" class="mand_red">
                                    Card Type</label>
                                <div class="field2">
                                    <div>
                                        <span class="form_i_cap">(Only VISA or Master Credit Card is acceptable for premium
                                            payment)</span>
                                    </div>
                                    <div class="radiol" id="divVisa">
                                        <span class="indicator">
                                            <asp:RadioButton onclick="ValCheckCardType();CheckCardTypeValidationCss();" ID="rdoVisa"
                                                runat="server" GroupName="cardtype" />
                                            <span class="radioalign">
                                                <asp:Label ID="lblVisa" runat="server" Text="VISA"></asp:Label></span> </span>
                                    </div>
                                    <div class="radior" id="divMasterCard">
                                        <span class="indicator">
                                            <asp:RadioButton onclick="ValCheckCardType();CheckCardTypeValidationCss();" ID="rdoMasterCard"
                                                runat="server" GroupName="cardtype" />
                                            <span class="radioalign">
                                                <asp:Label ID="lblMasterCard" runat="server" Text="MasterCard"></asp:Label></span>
                                        </span>
                                    </div>
                                    <div style="display: none">
                                        <asp:TextBox ID="txtCardType" runat="server"></asp:TextBox></div>
                                    <asp:RequiredFieldValidator ID="rfvCardType" runat="server" CssClass="validationErrorControl"
                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtCardType" ValidationGroup="proposal"
                                        Text=""></asp:RequiredFieldValidator>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                            <div class="row">
                                <div class="blacksmall">
                                    <p>
                                        By submitting this proposal form, I am aware that any refund will be paid by cheque
                                        the Insured/Policyholder. <b>Royal & Sun Alliance Insurance Plc(Singapore Branch)</b> will consider
                                        all declared information as true and correct. This Credit Card payment is subject
                                        to the terms of the Credit Card Agreement.</p>
                                </div>
                            </div>
                        </div>
                    <div class="formButtons" id="divFormButtons">
                    <div class="cancel">
                        <span>
                            <asp:ImageButton ID="ibtnBack" runat="server" ImageUrl="~/images/buttons/form_back_but.gif"
                                CausesValidation="False" AlternateText="Go Previous Step" 
                            ToolTip="Go Back" onclick="ibtnBack_Click" /></span>
                        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" class="img_align_right"></asp:Label>
                    </div>
                    <div class="button2">
                        <span>
                            <asp:ImageButton ID="ibtSubmit" OnClientClick="ShowHideDiv('divDeclaration',true);LoadValidationErrorCss();CheckOptionValidationCss();"
                                runat="server" ValidationGroup="proposal" ImageUrl="~/images/buttons/submit_but.gif"
                                class="img_align_right" onclick="ibtSubmit_Click" />
                        </span>
                    </div>
                </div>
                </fieldset>
            </div>
        </div>
    </div>
    
    <script type="text/javascript">
        function ShowHideDiv(divName, varOnOff) 
        {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }

        function ShowInsurerStatus() {
            var Insurer = document.getElementById('<%=ddlExistingInsurerName.ClientID%>').value;
            if (Insurer != '177') {
                ShowHideDiv('divExistingInsurer', true);
                ValidatorEnable(ValExistingInsurer, true);
            }
            else {
                ShowHideDiv('divExistingInsurer', false);
                ValidatorEnable(ValExistingInsurer, false);
            }
        }

        function CheckOptionValidationCss() 
        {
            CheckVehicleStatusValidationCss();
            CheckPolicyRDCOptedValidationCss();
            CheckHirePurchaseValidationCss();
            CheckDrivingWestMalaysiaValidationCss();
            CheckVechicleModificationValidationCss();
            CheckMarketvalueValidationCss();
            CheckCarRentalExtensionValidationCss();
            CheckNCDProtectorValidationCss();
            CheckDealerWorkshopExtensionValidationCss();
            CheckSunRoofExtensionValidationCss();
            CheckMoonRoofExtensionValidationCss();
            CheckPurposeofuseValidationCss();
            CheckPhysicalinfirmValidationCss();
            CheckAccidentValidationCss();
            CheckTrafficValidationCss();
            CheckInsuranceterminatedValidationCss();
            CheckDermeritPointsValidationCss();
            //CheckExistingInsurerValidationCss();
            CheckCardTypeValidationCss();
        }

        function CheckValidationCss(divYes, divNo, ctrlText, valCtrl) 
        {
            ShowValidationEffectOption(divYes, divNo, ctrlText, valCtrl);
            return true;
        }

        //Vehicle Status
        function CheckVehicleStatusValidationCss() {
            CheckValidationCss('divNew', 'divUsed', '<%=txtVehicleStatus.ClientID%>', '<%=rfvVehicleStatus.ClientID%>');
        }

        function ValVehicleStatus() {
            var txtCtrl = document.getElementById("<%=txtVehicleStatus.ClientID%>");
            txtCtrl.value = "1";
        }

        //PolicyRDCOpted
        function CheckPolicyRDCOptedValidationCss() {
            CheckValidationCss('divYesPolicyRDCOpted', 'divNoPolicyRDCOpted', '<%=txtPolicyRDCOpted.ClientID%>', '<%=rfvPolicyRDCOpted.ClientID%>');
        }

        function ValPolicyRDCOpted() {
            var txtCtrl = document.getElementById("<%=txtPolicyRDCOpted.ClientID%>");
            txtCtrl.value = "1";
        }
        
        //Hire Purchase
        function CheckHirePurchaseValidationCss() {
            CheckValidationCss('divYesHirePurchase', 'divNoHirePurchase', '<%=txtHirePurchase.ClientID%>', '<%=rfvHirePurchase.ClientID%>');
        }

        function ValHirePurchase(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtHirePurchase.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvHirePurchaseCompany.ClientID%>'), varOnOff);
        }

        //Drive West Malaysia
        function CheckDrivingWestMalaysiaValidationCss() {
            CheckValidationCss('divYesDrivingWestMalaysia', 'divNoDrivingWestMalaysia', '<%=txtDrivingWestMalaysia.ClientID%>', '<%=rfvDrivingWestMalaysia.ClientID%>');
        }

        function ValDrivingWestMalaysia(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtDrivingWestMalaysia.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvDrivetowestmalaysia.ClientID%>'), varOnOff);
        }

        //Vehicle Modification
        function CheckVechicleModificationValidationCss() {
            CheckValidationCss('divYesVechicleModification', 'divNoVechicleModification', '<%=txtVechicleModification.ClientID%>', '<%=rfvVechicleModification.ClientID%>');
        }

        function ValVechicleModification(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtVechicleModification.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvVMReason.ClientID%>'), varOnOff);
        }

        //Market Value
        function CheckMarketvalueValidationCss() {
            CheckValidationCss('divYesCOE', 'divNoCOE', '<%=txtMarketvalue.ClientID%>', '<%=rfvMarketvalue.ClientID%>');
        }

        function ValMarketvalue() {
            var txtCtrl = document.getElementById("<%=txtMarketvalue.ClientID%>");
            txtCtrl.value = "1";
        }

        //CarRentalExtension
        function CheckCarRentalExtensionValidationCss() {
            CheckValidationCss('divYesCarRentalExtension', 'divNoCarRentalExtension', '<%=txtCarRentalExtension.ClientID%>', '<%=rfvCarRentalExtension.ClientID%>');
        }

        function ValCarRentalExtension(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtCarRentalExtension.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvCarRentalExtension.ClientID%>'), varOnOff);
        }

        //NCDProtector
        function CheckNCDProtectorValidationCss() {
            CheckValidationCss('divYesNCDProtector', 'divNoNCDProtector', '<%=txtNCDProtector.ClientID%>', '<%=rfvNCDProtector.ClientID%>');
        }

        function ValNCDProtector(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtNCDProtector.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvNCDProtector.ClientID%>'), varOnOff);
        }

        function SetPremiumValue() {

            if (document.getElementById('<%=rdoYesCarRentalExtension.ClientID%>').checked == true && document.getElementById('<%=rdoYesNCDProtector.ClientID%>').checked == true) {
                ShowHideDiv('divPremiumRates', true);
                ShowHideDiv('divPremium1', true);
                ShowHideDiv('divPremium2', false);
                ShowHideDiv('divPremium3', false);
            }
            else if (document.getElementById('<%=rdoYesCarRentalExtension.ClientID%>').checked == true && document.getElementById('<%=rdoYesNCDProtector.ClientID%>').checked == false) {
                ShowHideDiv('divPremiumRates', true);
                ShowHideDiv('divPremium1', false);
                ShowHideDiv('divPremium2', true);
                ShowHideDiv('divPremium3', false);
            }
            else if (document.getElementById('<%=rdoYesCarRentalExtension.ClientID%>').checked == false && document.getElementById('<%=rdoYesNCDProtector.ClientID%>').checked == true) {
                ShowHideDiv('divPremiumRates', true);
                ShowHideDiv('divPremium1', false);
                ShowHideDiv('divPremium2', false);
                ShowHideDiv('divPremium3', true);
            }
            else
            {
                ShowHideDiv('divPremiumRates', false); 
                ShowHideDiv('divPremium1', false);
                ShowHideDiv('divPremium2', false);
                ShowHideDiv('divPremium3', false);
            }

        }

        //DealerWorkshopExtension
        function CheckDealerWorkshopExtensionValidationCss() {
            CheckValidationCss('divYesDealerWorkshopExtension', 'divNoDealerWorkshopExtension', '<%=txtDealerWorkshopExtension.ClientID%>', '<%=rfvDealerWorkshopExtension.ClientID%>');
        }

        function ValDealerWorkshopExtension() {
            var txtCtrl = document.getElementById("<%=txtDealerWorkshopExtension.ClientID%>");
            txtCtrl.value = "1";
        }

        //SunRoofExtension
        function CheckSunRoofExtensionValidationCss() {
            CheckValidationCss('divYesSunRoofExtension', 'divNoSunRoofExtension', '<%=txtSunRoofExtension.ClientID%>', '<%=rfvSunRoofExtension.ClientID%>');
        }

        function ValSunRoofExtension(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtSunRoofExtension.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvSunroofExtenAmt.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=revSunroofExtenAmt.ClientID%>'), varOnOff);
        }

        //MoonRoofExtension
        function CheckMoonRoofExtensionValidationCss() {
            CheckValidationCss('divYesMoonRoofExtension', 'divNoMoonRoofExtension', '<%=txtMoonRoofExtension.ClientID%>', '<%=rfvMoonRoofExtension.ClientID%>');
        }

        function ValMoonRoofExtension(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtMoonRoofExtension.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvMoonroofExtenAmt.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=revMoonroofExtenAmt.ClientID%>'), varOnOff);
        }

        //Purpose of Use
        function CheckPurposeofuseValidationCss() {
            CheckValidationCss('divYesPurposeofuse', 'divNoPurposeofuse', '<%=txtPurposeofuse.ClientID%>', '<%=rfvPurposeofuse.ClientID%>');
        }

        function ValPurposeofuse() {
            var txtCtrl = document.getElementById("<%=txtPurposeofuse.ClientID%>");
            txtCtrl.value = "1";
        }

        //Physical Infirm
        function CheckPhysicalinfirmValidationCss() {
            CheckValidationCss('divYesPhysicalinfirm', 'divNoPhysicalinfirm', '<%=txtPhysicalinfirm.ClientID%>', '<%=rfvPhysicalinfirm.ClientID%>');
        }

        function ValPhysicalinfirm(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtPhysicalinfirm.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvPIReason.ClientID%>'), varOnOff);
        }

        //Accident Involved
        function CheckAccidentValidationCss() {
            CheckValidationCss('divYesAccident', 'divNoAccident', '<%=txtAccident.ClientID%>', '<%=rfvAccident.ClientID%>');
        }

        function ValAccident(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtAccident.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvAIReason.ClientID%>'), varOnOff);
        }

        //Traffic convicted
        function CheckTrafficValidationCss() {
            CheckValidationCss('divYesTraffic', 'divNoTraffic', '<%=txtTraffic.ClientID%>', '<%=rfvTraffic.ClientID%>');
        }

        function ValTraffic(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtTraffic.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvTCReason.ClientID%>'), varOnOff);
        }

        //Insurance Terminated
        function CheckInsuranceterminatedValidationCss() {
            CheckValidationCss('divYesInsuranceterminated', 'divNoInsuranceterminated', '<%=txtInsuranceterminated.ClientID%>', '<%=rfvInsuranceterminated.ClientID%>');
        }

        function ValInsuranceterminated(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtInsuranceterminated.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvITReason.ClientID%>'), varOnOff);
        }

        //Dermerit Points
        function CheckDermeritPointsValidationCss() {
            CheckValidationCss('divYesDermeritPoints', 'divNoDermeritPoints', '<%=txtDermeritPoints.ClientID%>', '<%=rfvDermeritPoints.ClientID%>');
        }

        function ValDermeritPoints(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtDermeritPoints.ClientID%>");
            txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvDemeritDrivername1.ClientID%>'), varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvTotalpoints1.ClientID%>'), varOnOff);
            IsEnableDateValidation('<%=ddlDODemerit1.ClientID%>', varOnOff);
            ValidatorEnable(document.getElementById('<%=rfvOffencetype1.ClientID%>'), varOnOff);
            CheckDriver2Validation();
            CheckDriver3Validation();
            CheckDriver4Validation();
            CheckDriver5Validation();
            CheckDriver6Validation();
        }

        //Existing Insurer
//        function CheckExistingInsurerValidationCss() {
//            CheckValidationCss('divYesExistingInsurer', 'divNoExistingInsurer', '<=txtExistingInsurer.ClientID>', '<=rfvExistingInsurer.ClientID>');
//        }

        function ValExistingInsurer(varOnOff) {
            //var txtCtrl = document.getElementById("<=txtExistingInsurer.ClientID>");
            //txtCtrl.value = "1";

            ValidatorEnable(document.getElementById('<%=rfvExistingInsurerName.ClientID%>'), true);
            ValidatorEnable(document.getElementById('<%=rfvInsRegisterNo.ClientID%>'), varOnOff)
            ValidatorEnable(document.getElementById('<%=rfvExistNCD.ClientID%>'), varOnOff)
            ValidatorEnable(document.getElementById('<%=rfvInsPolicyNo.ClientID%>'), varOnOff);
            IsEnableDateValidation('<%=ddlDOCancellation.ClientID%>', varOnOff);
        }

        //Payment Mode
        function CheckCardTypeValidationCss() {
            CheckValidationCss('divVisa', 'divMasterCard', '<%=txtCardType.ClientID%>', '<%=rfvCardType.ClientID%>');
        }

        function ValCheckCardType(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtCardType.ClientID%>");
            txtCtrl.value = "1";
        }

        function CheckDriver1Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername1.ClientID%>');
            //alert(txtDriver.value.length);
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit1.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit1.ClientID%>', false);
        }

        function CheckDriver2Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername2.ClientID%>');
            //alert(txtDriver.value.length);
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit2.ClientID%>', false);
        }

        function CheckDriver3Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername3.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit3.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit3.ClientID%>', false);
        }

        function CheckDriver4Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername4.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit4.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit4.ClientID%>', false);
        }

        function CheckDriver5Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername5.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit5.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit5.ClientID%>', false);
        }

        function CheckDriver6Validation() {
            var txtDriver = document.getElementById('<%=txtDemeritDrivername6.ClientID%>');
            if (txtDriver.value.length > 0)
                IsEnableDateValidation('<%=ddlDODemerit6.ClientID%>', true);
            else
                IsEnableDateValidation('<%=ddlDODemerit6.ClientID%>', false);
        }

        function showhide(el) {

            el = document.getElementById(el);
            el.style.display = (el.style.display == "none") ? "block" : "none";

        }

        window.onload = function() {
            showhide('divQuoteSummery');
            showhide('divParticularsofCar');
            showhide('divHirePurchase');
            showhide('divDrivingWestMalaysia');
            showhide('divVechicleModification');
            showhide('divSunroofExtension');
            showhide('divMoonroofExtension');
            showhide('divGeneralQuestion');
            showhide('divPhysicalinfirm');
            showhide('divAccident');
            showhide('divTraffic');
            showhide('divInsuranceterminated');
            showhide('divDermeritPoints');
            showhide('divPreviousInsurance');
            showhide('divExistingInsurer');
            showhide('divMoredeclare');
            showhide('divPaymentMode');
            SetPremiumValue();

            //inputNCD
            //divNCDProtectorstatus
            ShowInsurerStatus();
            onloading();
        }

        function onloading() 
        {

            if (document.getElementById('<%=inputClaim.ClientID%>').value == 'No') {
                ShowHideDiv('divClaimDetails', false);
                ValidatorEnable(document.getElementById('<%=rfvClaimODAmount.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revClaimODAmount.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=rfvClaimTPPDAmount.ClientID%>'), false);
                ValidatorEnable(document.getElementById('<%=revClaimTPPDAmount.ClientID%>'), false);
            }
            else 
            {
                ShowHideDiv('divClaimDetails', true);
                ValidatorEnable(document.getElementById('<%=rfvClaimODAmount.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revClaimODAmount.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=rfvClaimTPPDAmount.ClientID%>'), true);
                ValidatorEnable(document.getElementById('<%=revClaimTPPDAmount.ClientID%>'), true);
            }

            if (document.getElementById('<%=inputNCD.ClientID%>').value == '50') {
                ShowHideDiv('divNCDProtectorstatus', true);
                ValNCDProtector(true); 
            }
            else {
                ShowHideDiv('divNCDProtectorstatus', false);
                ValNCDProtector(false); 
            }

            //Hire Purchase
            if (document.getElementById('<%=rdoYesHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', true);
                ValHirePurchase(true);
            }
            else if (document.getElementById('<%=rdoNoHirePurchase.ClientID%>').checked == true) {
                ShowHideDiv('divHirePurchase', false);
                ValHirePurchase(false);
            }
            else { ShowHideDiv('divHirePurchase', false); }

            //Drive to West Malaysia
            if (document.getElementById('<%=rdoYesDrivingWestMalaysia.ClientID%>').checked == true) {
                ShowHideDiv('divDrivingWestMalaysia', true);
                ValDrivingWestMalaysia(true);
            }
            else if (document.getElementById('<%=rdoNoDrivingWestMalaysia.ClientID%>').checked == true) {
                ShowHideDiv('divDrivingWestMalaysia', false);
                ValDrivingWestMalaysia(false);
            }
            else { ShowHideDiv('divDrivingWestMalaysia', false); }

            //Vehicle Modification
            if (document.getElementById('<%=rdoYesVechicleModification.ClientID%>').checked == true) {
                ShowHideDiv('divVechicleModification', true);
                ValVechicleModification(true);
            }
            else if (document.getElementById('<%=rdoNoVechicleModification.ClientID%>').checked == true) {
                ShowHideDiv('divVechicleModification', false);
                ValVechicleModification(false);
            }
            else { ShowHideDiv('divVechicleModification', false); }

            //Sunroof Extension
            if (document.getElementById('<%=rdoYesSunRoofExtension.ClientID%>').checked == true) {
                ShowHideDiv('divSunroofExtension', true);
                ValSunRoofExtension(true);
            }
            else if (document.getElementById('<%=rdoNoSunRoofExtension.ClientID%>').checked == true) {
                ShowHideDiv('divSunroofExtension', false);
                ValSunRoofExtension(false);
            }

            //Moonroof Extension
            if (document.getElementById('<%=rdoYesMoonRoofExtension.ClientID%>').checked == true) {
                ShowHideDiv('divMoonroofExtension', true);
                ValMoonRoofExtension(true);
            }
            else if (document.getElementById('<%=rdoNoMoonRoofExtension.ClientID%>').checked == true) {
                ShowHideDiv('divMoonroofExtension', false);
                ValMoonRoofExtension(false);
            }

            //Physical Infirm
            if (document.getElementById('<%=rdoYesPhysicalinfirm.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalinfirm', true);
                ValPhysicalinfirm(true);
            }
            else if (document.getElementById('<%=rdoNoPhysicalinfirm.ClientID%>').checked == true) {
                ShowHideDiv('divPhysicalinfirm', false);
                ValPhysicalinfirm(false);
            }
            else { ShowHideDiv('divPhysicalinfirm', false); }

            //Accident Involved
            if (document.getElementById('<%=rdoYesAccident.ClientID%>').checked == true) {
                ShowHideDiv('divAccident', true);
                ValAccident(true);
            }
            else if (document.getElementById('<%=rdoNoAccident.ClientID%>').checked == true) {
                ShowHideDiv('divAccident', false);
                ValAccident(false);
            }
            else { ShowHideDiv('divAccident', false); }

            //Traffic Convicted
            if (document.getElementById('<%=rdoYesTraffic.ClientID%>').checked == true) {
                ShowHideDiv('divTraffic', true);
                ValTraffic(true);
            }
            else if (document.getElementById('<%=rdoNoTraffic.ClientID%>').checked == true) {
                ShowHideDiv('divTraffic', false);
                ValTraffic(false);
            }
            else { ShowHideDiv('divTraffic', false); }

            //Insurance Terminated
            if (document.getElementById('<%=rdoYesInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', true);
                ValInsuranceterminated(true);
            }
            else if (document.getElementById('<%=rdoNoInsuranceterminated.ClientID%>').checked == true) {
                ShowHideDiv('divInsuranceterminated', false);
                ValInsuranceterminated(false);
            }
            else { ShowHideDiv('divInsuranceterminated', false); }

            //Dermerit Points
            if (document.getElementById('<%=rdoYesDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', true);
                ValDermeritPoints(true);
            }
            else if (document.getElementById('<%=rdoNoDermeritPoints.ClientID%>').checked == true) {
                ShowHideDiv('divDermeritPoints', false);
                ValDermeritPoints(false);
            }
            else { ShowHideDiv('divDermeritPoints', false); }

            //Existing Insurer
//            if (document.getElementById('<=rdoYesExistingInsurer.ClientID>').checked == true) {
//                ShowHideDiv('divExistingInsurer', true);
//                ValExistingInsurer(true);
//            }
//            else if (document.getElementById('<=rdoNoExistingInsurer.ClientID>').checked == true) {
//                ShowHideDiv('divExistingInsurer', false);
//                ValExistingInsurer(false);
//            }
//            else { ShowHideDiv('divExistingInsurer', false); }

            //Payment Mode
            if (document.getElementById('<%=txtCardType.ClientID%>').value == "1") {
                ShowHideDiv('divPaymentMode', true);
            }
            else { ShowHideDiv('divPaymentMode', false); }

        }

        function restrictToNumbers(e) {
            if ([e.keyCode || e.which] == 8 || [e.keyCode || e.which] == 37 || [e.keyCode || e.which] == 9 || [e.keyCode || e.which] == 39) //this is to allow backspace
                return true;

            if ([e.keyCode || e.which] < 48 || [e.keyCode || e.which] > 57)
                e.preventDefault ? e.preventDefault() : e.returnValue = false;
        }

        function requestByPostCode() {
            try {
                var _pcode = document.getElementById('<%=txtPostCode.ClientID%>').value;
                if (_pcode.length != 6) {
                    alert('Postal code length must be 6 numbers value.');
                    document.getElementById('<%=txtAddress.ClientID%>').value = '';
                    return false;
                }
                else {
                    requestData(_pcode);
                }
            }
            catch (e) {
                alert(e.toString());
            }
        }


        function set_data(json) 
        {
            try {
                var srcTable = $("#divAddress").empty();
                var txtAddress = document.getElementById('<%=txtAddress.ClientID%>');
                if (json == null) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }
                if (json.length == 0) {
                    $("<table><tr><td>No address found!</td></tr></table>").appendTo(srcTable);
                    alert("No address found!");
                    document.getElementById('<%=txtPostCode.ClientID%>').value = "";
                    txtAddress.value = "No Address found.";
                    return;
                }

                var tbl = $("<table width='50%'>");

                var tbody = $("<tbody>");
                var no = 1;
                for (var i = 0; i < json.length; i++) {
                    var trow = $("<tr>"), rec = json[i];
                    if (rec.t != null) {

                        var ctn = rec.t + "<br>" + rec.a;

                        $("<td>").html(ctn).data("col", 2).appendTo(trow);
                        if (i == 0) {
                            txtAddress.value = rec.t + "\n" + rec.a;
                        }
                        else {
                            txtAddress.value += "\n\n" + rec.t + "\n" + rec.a;
                        }
                        no++;
                    }
                    trow.appendTo(tbody);
                }
                tbody.appendTo(tbl);
                tbl.appendTo(srcTable);
            }
            catch (e) {
                alert(e.toString());
            }
        }

        function PostCodeChange() 
        {
            document.getElementById('divAddress').innerHTML = "Your postcode changed.";
            document.getElementById('divAddress').style.display = 'none';
            document.getElementById('<%=txtAddress.ClientID%>').innerHTML = "Your postcode changed.";
        }
    </script>
</asp:Content>
